
import { getToken, setToken, removeToken } from '@/utils/auth'
import { resetRouter } from '@/router'
import  {_API} from '@/api/bai'

const types = {
  
}
const state = {
      
      
        gh_statistics_list:{},
      
}

const mutations = {
    set_gh_statistics_list(state,param){
    state.gh_statistics_list=param;
 },

  
}

const actions = {


    getStatisticClinicRegisterList({ commit }, d){
    return new Promise((resolve, reject) => {
      _API.getStatisticClinicRegister(d).then((res)=>{
         
            if (res.code === 200 && res.data) {
            
              commit('set_gh_statistics_list',res.data)
          
              resolve(res)
           
          } else {
              commit('set_gh_statistics_list', {})
              resolve()
          }
      })
    })
  },
  
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

